package com.itboy.common.core.domain.entity.es;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


@Data
public class SkuEsModel {

	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;
	@JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    private Boolean hasStock;
    private Long hotScore;
	@JsonSerialize(using = ToStringSerializer.class)
    private Long brandId;
	@JsonSerialize(using = ToStringSerializer.class)
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attrs> attrs;

    @Data
    public static class Attrs{
		@JsonSerialize(using = ToStringSerializer.class)
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
